<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the datetime info attributes of the document</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudoc.setinfoattr.html">HaruDoc::setInfoAttr</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="harudoc.setopenaction.html">HaruDoc::setOpenAction</a></div>
 <div class="up"><a href="class.harudoc.html">HaruDoc</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="harudoc.setinfodateattr" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">HaruDoc::setInfoDateAttr</h1>
  <p class="verinfo">(PECL haru &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">HaruDoc::setInfoDateAttr</span> &mdash; <span class="dc-title">Set the datetime info attributes of the document</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-harudoc.setinfodateattr-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>HaruDoc::setInfoDateAttr</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$type</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$year</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$month</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$day</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$hour</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$min</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$sec</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$ind</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$off_hour</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$off_min</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the datetime info attributes of the document.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-harudoc.setinfodateattr-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">type</code></em></dt>

     <dd>

      <p class="para">
       The type of the attribute. Can be one of the following:
       <ul class="simplelist">
        <li class="member">
         <strong><code>HaruDoc::INFO_CREATION_DATE</code></strong> 
        </li>
        <li class="member">
         <strong><code>HaruDoc::INFO_MOD_DATE</code></strong> 
        </li>
       </ul>
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">year</code></em></dt>

     <dd>

      <p class="para">
       
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">month</code></em></dt>

     <dd>

      <p class="para">
       Between 1 and 12.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">day</code></em></dt>

     <dd>

      <p class="para">
       Between 1 and 31, 30, 29 or 28 (different for each month).
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">hour</code></em></dt>

     <dd>

      <p class="para">
       Between 0 and 23.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">min</code></em></dt>

     <dd>

      <p class="para">
       Between 0 and 59.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">sec</code></em></dt>

     <dd>

      <p class="para">
       Between 0 and 59.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">ind</code></em></dt>

     <dd>

      <p class="para">
       The timezone relation to UTC, can be &quot;&quot;, &quot; &quot;, &quot;+&quot;, &quot;-&quot; and &quot;Z&quot;.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">off_hour</code></em></dt>

     <dd>

      <p class="para">
       If <em><code class="parameter">ind</code></em> is not &quot; &quot; or &quot;&quot;, values between 0 and
       23 are valid. Otherwise, this parameter is ignored.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">off_min</code></em></dt>

     <dd>

      <p class="para">
       If <em><code class="parameter">ind</code></em> is not &quot; &quot; or &quot;&quot;, values between 0 and
       59 are valid. Otherwise, this parameter is ignored.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-harudoc.setinfodateattr-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-harudoc.setinfodateattr-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">发生错误时抛出 <a href="class.haruexception.html" class="classname">HaruException</a> 异常。</p>
 </div>


 <div class="refsect1 seealso" id="refsect1-harudoc.setinfodateattr-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="harudoc.setinfoattr.html" class="methodname" rel="rdfs-seeAlso">HaruDoc::setInfoAttr()</a> - Set the info attribute of the document</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="harudoc.setinfoattr.html">HaruDoc::setInfoAttr</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="harudoc.setopenaction.html">HaruDoc::setOpenAction</a></div>
 <div class="up"><a href="class.harudoc.html">HaruDoc</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
